import { Dictionary } from '@/interface/Basic'
import { SettingType } from '@/views/dashboard/settings/basic'
export interface TableColumnType {
  ID: string
  AAA001: string
  AAA1501: string
  AAA1601: string
  AAA1101: string
  AAA1201: string
  AAA1301: string
  AAA1801: string
  AAA701: string
  AAA801: string
  AAA1401: string
  AAA301: string
}
export const tableColumnDict: Dictionary<string> = {
  ID: 'ID',
  AAA001: '出厂编号',
  AAA1501: '操作员',
  AAA1601: '保存时间',
  AAA1101: '表内温度',
  AAA1201: '压力',
  AAA1301: '表内声速',
  AAA1801: '正反向',
  AAA701: '触发宽度',
  AAA801: '触发个数',
  AAA1401: '备注',
  AAA301: '1A原始声延时'
}
export interface ChannelColumnType {
  channel: string
  AAA101: string
  AAA301: string
  AAA401: string
}
export const channelColumnDict: ChannelColumnType = {
  channel: '孔位',
  AAA101: '原始声时【μs】',
  AAA301: '实际声程【mm】',
  AAA401: '原始声延时【μs】'
}
export const channelTableData = [
  // 1A 数据
  [
    { prop: 'channel', key: 'static', value: '1A' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ],
  // 1B
  [
    { prop: 'channel', key: 'static', value: '1B' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ],
  // 2A
  [
    { prop: 'channel', key: 'static', value: '2A' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ],
  // 2B
  [
    { prop: 'channel', key: 'static', value: '2B' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ],
  // 3A
  [
    { prop: 'channel', key: 'static', value: '3A' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ],
  // 3B
  [
    { prop: 'channel', key: 'static', value: '3B' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ],
  [
    { prop: 'channel', key: 'static', value: '4A' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ],
  [
    { prop: 'channel', key: 'static', value: '4B' },
    { prop: 'AAA101', key: 'AAA101', value: '' },
    { prop: 'AAA301', key: 'AAA301', value: '' },
    { prop: 'AAA401', key: 'AAA401', value: '' }
  ]
]
export const module_settings: SettingType[] = [
  { label: '出厂编号', key: 'item1', value: '', type: 'input', disabled: false, unit: '' },
  {
    label: '转换器型号',
    key: 'AAF601',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '通径',
    key: 'AAF701',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '正反向',
    key: 'AAF801',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  { label: '触发宽度', key: 'item1', value: '', type: 'input', disabled: true, unit: '' },
  { label: '触发个数', key: 'item2', value: '', type: 'input', disabled: false, unit: '' },
  { label: '标准声速', key: 'item3', value: '', type: 'input', disabled: false, unit: 'm/s' },
  { label: '标准温度', key: 'item4', value: '', type: 'input', disabled: true, unit: '℃' },
  { label: '表内温度', key: 'item5', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '压力', key: 'item6', value: '', type: 'input', disabled: false, unit: 'KPa' },
  { label: '表内声速', key: 'item7', value: '', type: 'input', disabled: false, unit: 'm/s' },
  { label: '备注', key: 'item8', value: '', type: 'textarea', disabled: false, unit: '' }
]
